<?php

/**
 * 主题样式
 */
add_action('wp_enqueue_scripts', function () {
    wp_enqueue_style('style', get_template_directory_uri() . '/assets/css/style.css');
    wp_enqueue_style('style-min', get_template_directory_uri() . '/assets/css/style.min.css');
    wp_enqueue_style('styles', get_template_directory_uri() . '/assets/css/styles.css');
    wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css');
    wp_enqueue_style('bootstrap-icons', get_template_directory_uri() . '/assets/css/bootstrap-icons.css');
    wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.css');
    wp_enqueue_style('themify-icons', get_template_directory_uri() . '/assets/css/themify-icons.css');
    wp_enqueue_style('animate', get_template_directory_uri() . '/assets/css/animate.css');
    wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/assets/css/owl.carousel.css');
    // wp_enqueue_style('styles-2', get_template_directory_uri() . '/assets/css/styles-2.css');
    wp_enqueue_style('themes', get_template_directory_uri() . '/assets/css/themes.css');
});

/**
 * 主题脚本
 */
add_action('wp_enqueue_scripts', function () {
    wp_enqueue_script('wp-emoji-release-min', get_template_directory_uri() . '/assets/js/wp-emoji-release.min.js');
    wp_enqueue_script('index', get_template_directory_uri() . '/assets/js/index.js', [], '', true);
    wp_enqueue_script('jquery', get_template_directory_uri() . '/assets/js/jquery-3.6.3.min.js', [], '', true);
    wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.bundle.min.js', [], '', true);
    wp_enqueue_script('owl-carousel', get_template_directory_uri() . '/assets/js/owl.carousel.js', [], '', true);
    wp_enqueue_script('plugins-min', get_template_directory_uri() . '/assets/js/plugins.min.js', [], '', true);
    wp_enqueue_script('wodepress', get_template_directory_uri() . '/assets/js/wodepress.js', [], '', true);
});
